{% extends 'base_user_center.html' %}
{% block right_content %}
<!-- <div class="container">
    <h2>Welcome, {{ user.username }}!</h2>
    <h3>Default Address:</h3>
    {% if address %}
        <p>{{ address.addr }} （{{ address.receiver }} 收） {{ address.phone }}</p>
    {% else %}
        <p>No default address set.</p>
    {% endif %}
    <h3>Browsing History:</h3>
    <ul>
        {% for good in goods_li %}
            <li>{{ good.name }}</li>
        {% empty %}
            <li>No browsing history.</li>
        {% endfor %}
    </ul>
</div> -->
<div class="container">
    <h2>Welcome, {{ user.username }}!</h2>
    <h3>Default Address:</h3>
    {% if address %}
        <p>{{ addressbase.addr }} （{{ addressbase.receiver }} 收） {{ addressbase.phone }}</p>
    {% else %}
        <p>No default address set.</p>
    {% endif %}
    <h3>Browsing History:</h3>
    <ul>
        {% for good in goods_li %}
            <li>{{ good.name }}</li>
        {% empty %}
            <li>No browsing history.</li>
        {% endfor %}
    </ul>
</div> 
{% endblock right_content %}